package com.springboot.cloud.demos.producer.service;

import com.springboot.cloud.demos.entity.po.AppVersion;

import java.util.List;

public interface IAppVersionService {
    /**
     * 获取
     *
     * @param id
     * @return
     */
    AppVersion get(String id);

    /**
     * 新增
     *
     * @param appVersion
     * @return
     */
    boolean add(AppVersion appVersion);

    /**
     * 查询
     *
     * @return
     */
    List<AppVersion> queryAll();

    /**
     * 更新信息
     *
     * @param appVersion
     */
    boolean update(AppVersion appVersion);

    /**
     * 根据id删除
     *
     * @param id
     */
    boolean delete(String id);

    AppVersion last(String platform);
}
